<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>分类管理</title>
<script type="text/javascript" src="${ctx}/script/common.js"></script>
<script type="text/javascript" src="${ctx}/script/product/catalog.js"></script>
<script type='text/javascript' src='${ctx}/dwr/interface/catalogHelper.js'></script>
  <script type='text/javascript' src='${ctx}/dwr/engine.js'></script>

<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
</head>
<body>
<table align="center" width="78%">
	<tr>
		<td class="td_01" width="50%">名称</td>
		<td class="td_01">状态</td>
		<td class="td_01">顺序</td>
		<td class="td_01" width="20%">操作</td>
	</tr>
	<logic:present name="CatalogRange">
		<logic:iterate id="catalog" name="CatalogRange">
			<tr>
				<td class="td_03">${catalog.cname}</td>
				<td class="td_03">
					${catalog.status==1?'√':'Ⅹ'}
					
				</td>
				<td class="td_03">${catalog.sequence}</td>
				<td class="td_03">
				<a href="${ctx}/catalog/catalogMessage.do?method=toUpdateCatalog&catalog.id=${catalog.id}">修改</a>
					&nbsp;&nbsp;&nbsp;&nbsp;
				<a onClick="deleteCatalog('${catalog.catalogCode}',0);" href="#">删除</a>
				</td>
			</tr>
		</logic:iterate>
	</logic:present>
	<tr>
		<td colspan="4" class="td_01">
		<a href="${ctx}/catalog/catalogMessage.do?method=toAddCatalog&catalogCode=${selected}">添加子类 </a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="${ctx}/catalog/catalogMessage.do?method=toAddCatalog">添加分类</a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="${ctx}/catalog/catalogMessage.do?method=toUpdateCatalog&catalog.id=${selectedId}">修改分类 </a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a onClick="deleteCatalog('${selected}',1);" href="#">删除 </a>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<a href="${ctx}/catalog/catalogMessage.do?method=showFilter&catalogid=${selected}" target="catalogList">定义过滤器 <a>
		</td>
	</tr>
</table>
</body>
</html>
